The image below has four active areas corresponding to button labels. Clicking within an active area invokes a script method defined for that area. An image map file defines these areas. For this example, the image map file contains these specifications:
rect home 7,3 120,58 rect newProducts 120,3 255,58 rect catalog 255,3 338,58 rect companyInfo 338,3 527,58
A click outside any of these areas causes a default action to be invoked, as specified in the declarations file.